import  Cookie from 'js-cookie'
export default function ({route, req, res, redirect}) {
  let token=Cookie.get('token')
  if(token){
    this.$store.dispatch('user/getUser')
  }
}
